﻿using System;
using System.Windows;
using AEM.Properties;
using System.IO;

namespace AEM.Utils
{
    public class LanguageHelper
    {
        public static void LoadLanguageFile()
        {
            try
            {
                Application.Current.Resources.MergedDictionaries[0] = new ResourceDictionary()
                {
                    Source = new Uri(Path.Combine(System.IO.Directory.GetCurrentDirectory(), Settings.Default.langs))
                };
            }
            catch{
                MessageBox.Show("语言包不正常,请核查后再试!");
            }
        }
    }
}
